﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<FinancialManagement.Models.ProjectTbaleDetails>" %>
<% using (Html.BeginForm())
   { %>
<div>
    <fieldset>
        <%--<legend>添加申报预算明细</legend>--%>
        <legend>
            <%=ViewBag.WindowTitle %></legend>
        <%:Html.HiddenFor(m=>m.DSID) %>
        <%: Html.HiddenFor(m => m.ProjectID)%>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.ProjectBudgetName) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => m.ProjectBudgetName)%>
            <%: Html.ValidationMessageFor(m => m.ProjectBudgetName)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.ProjectBudgetMoney) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(m => m.ProjectBudgetMoney)%>
            <%: Html.ValidationMessageFor(m => m.ProjectBudgetMoney)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.BudgetAccding) %><%:ViewBag.StrLen%>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(m => m.BudgetAccding)%>
            <%: Html.ValidationMessageFor(m => m.BudgetAccding)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.Notes) %><%:ViewBag.StrLen%>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(m => m.Notes)%>
            <%: Html.ValidationMessageFor(m => m.Notes)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(m => m.Illustration) %>
        </div>
        <div class="editor-field">
            <%= Html.Telerik().Upload()            
        .Name("attachments")            
        .Multiple(false)            
        .Async(async => async
        .Save("Save", "Upload")
        .Remove("Remove", "Upload")
            .AutoUpload(true)
            )   
            %>
            <p class="note">
                文件必须小于: 10 MB
            </p>
        </div>
        <p>
            <input type="button" value="提 交" onclick="insertContent()" />
            <input type="button" value="取 消" onclick="closeWindow()" />
        </p>
    </fieldset>
</div>
<% } %>
